/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.example;

import java.util.Locale;

/**
 * <p>Project: javaseapp - Ex1
 * <p>Powered by webrx On 2021-07-27 17:25:19
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Ex1 {
    public static void main(String[] args) {
        int a = Integer.parseInt(args[0]);
        int b = Integer.parseInt(args[1]);
        System.err.println("hello");
        System.out.printf("%d + %d = %d \r\n", a, b, a + b);
        System.out.println(a + " + " + b + " = " + (a + b));
        String name = "李四";
        int age = 5;
        String addr = "河南省郑州市科学大道88号";
        double money = 1000.98;

        System.out.println("姓名：" + name + "，年龄：0" + age + "岁，金额：" + money + "元，家庭地址：" + addr + "。");
        System.out.printf("姓名：%s，年龄：%02d岁，金额：%.1f元，家庭地址：%s。%n", name, age, money, addr);

        System.out.printf("#%02x%02x%02x",255,0,0); //#ff0000

        long time = System.currentTimeMillis();
        System.out.printf("%n %1$tF %1$tT",time);
        //Locale.setDefault(Locale.US);
        System.out.printf("%1$tY年%1$tm月%1$td日 %1$tT %1$tA\n",time);
        System.out.printf("%1$tY%1$tm%1$td%1$tH%1$tM%1$tS.jpg",time);
    }
}
